---
title: Github (Personal Access Token)
sidebarTitle: Github (Personal Access Token)
---

import Overview from "/snippets/overview.mdx"
import PreBuiltTooling from "/snippets/generated/github-pat/PreBuiltTooling.mdx"
import PreBuiltUseCases from "/snippets/generated/github-pat/PreBuiltUseCases.mdx"

<Overview />
<PreBuiltTooling />
<PreBuiltUseCases />

## Access requirements
| Pre-Requisites | Status | Comment|
| - | - | - |
| Paid dev account | ❓ |  |
| Paid test account | ❓ |  |
| Partnership | ❓ | |
| App review | ❓ |  |
| Security audit | ❓ | |


## Setup guide

_No setup guide yet._

<Tip>Need help getting started? Get help in the [community](https://nango.dev/slack).</Tip>

<Note>Contribute improvements to the setup guide by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/github-pat.mdx)</Note>


## Useful links

-   [Generate a Fine-grained personal access token in your Github account](https://github.com/settings/personal-access-tokens)
-   [Managing your personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)
-   [How to create a fine-grained personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token)
-   [How to create a personal access token (classic)](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-personal-access-token-classic)
-   [Authentication guide](https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api?apiVersion=2022-11-28#authenticating-with-a-personal-access-token)
-   [API docs](https://docs.github.com/en/rest?apiVersion=2022-11-28)

<Note>Contribute useful links by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/github-pat.mdx)</Note>

## API gotchas
- GitHub provides two types of tokens for authentication:
1. **Classic Personal Access Tokens (PATs)** – These are the older, broad-scope tokens that grant access to a user's repositories, organizations, and settings.
2. **Fine-Grained Personal Access Tokens** – Introduced as a more secure alternative, these tokens allow for precise permission control at the repository and organization level.
- GitHub recommends using **Fine-grained PATs** whenever possible, as they provide better security and least-privilege access by allowing developers to specify the exact permissions and repositories they apply to. Classic PATs still work but are considered less secure due to their broad permissions

<Note>Contribute API gotchas by [editing this page](https://github.com/nangohq/nango/tree/master/docs/integrations/all/github-pat.mdx)</Note>

## Going further

<Card title="Connect to Github (Personal Access Token)" icon="link" href="/integrations/all/github-pat/connect" horizontal>
  Guide to connect to Github (Personal Access Token) using Connect UI
</Card>
